## FILE: Makefile

TARGET =            libconvUUI.a
PREFIX =            /usr
CFLAGS =            -m64 -O2 -Wall -pedantic -DNDEBUG -std=c++11 -g
CLINK_CFLAGS =      -fpic
CLINK_LDFLAGS =    -fpic
INCLUDE_DIR =   $(PREFIX)/include
INSTALL_DIR = /usr/local/lib

CC = g++
AR = ar

BUILD_CFLAGS =    -I$(INCLUDE_DIR) $(CLINK_CFLAGS)
OBJS =              convert-uui.o util.o 

.PHONY: all clean install install-extra doc

.cpp.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $(BUILD_CFLAGS) -o $@ $<

all: $(TARGET)

$(TARGET): $(OBJS)
	$(AR) cr $@ $(OBJS)

install: $(TARGET)
	cp $(TARGET) ${INSTALL_DIR}

install-extra:

clean:
	rm -f *.o $(TARGET)
